// Script assets have changed for v2.3.0 see
// https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information
function BlockPlace(){
 var j = irandom_range(1,5);
 switch j{
 case 4:
for (var i=0;i < j;i+=1)
{
	with (instance_create_layer(room_width/j,room_height/j+64*i,"instances",o_level_block))
	{
	}
		with (instance_create_layer(room_width/j+64,room_height/j+64*i,"instances",o_level_block))
	{
	}
}
break;

 case 1:
for (var i=0;i < j;i+=1)
{
	with (instance_create_layer(room_width/j,room_height/j+64*i,"instances",o_level_block))
	{
	}
		with (instance_create_layer(room_width/j+64,room_height/j+64*i,"instances",o_level_block))
	{
	}
}
break;

case 2:
for (var i=0;i < j;i+=1)
{
	with (instance_create_layer(room_width/j,room_height/j+64*i,"instances",o_level_block))
	{
	}
		with (instance_create_layer(room_width/j+64,room_height/j+64*i,"instances",o_level_block))
	{
	}
}
break;

case 3:
for (var i=0;i < j;i+=1)
{
	with (instance_create_layer(room_width/j,room_height/j+64*i,"instances",o_level_block))
	{
	}
		with (instance_create_layer(room_width/j+64,room_height/j+64*i,"instances",o_level_block))
	{
	}
}
break;

}
for (var i=0;i < 100;i+=1)
{
	with (instance_create_layer(0,room_height-64*i,"instances",o_level_block))
	{
	}
with (instance_create_layer(room_width,room_height-64*i,"instances",o_level_block))
	{
	}
	with (instance_create_layer(0+64*i,room_height,"instances",o_level_block))
	{
	}
with (instance_create_layer(room_width-64*i,0,"instances",o_level_block))
	{
	}
}
}